import request from '../../../utils/bsinRequest';

// 分页查询合约配置
export const getContractConfigPageList = (params) => {
  return request('/list', {
    serviceName: 'AdminContractConfigService',
    methodName: 'getPageList',
    bizParams: {
      ...params,
    },
  });
};

// 新增合约配置
export const addContractConfig = (params) => {
  return request('/add', {
    serviceName: 'AdminContractConfigService',
    methodName: 'add',
    bizParams: {
      ...params,
    },
  });
};

// 删除合约配置
export const deleteContractConfig = (params) => {
  return request('/add', {
    serviceName: 'AdminContractConfigService',
    methodName: 'delete',
    bizParams: {
      ...params,
    },
  });
};

// 查询合约配置详情
export const getContractConfigInfo = (params) => {
  return request('/add', {
    serviceName: 'AdminContractConfigService',
    methodName: 'getContractConfigInfo',
    bizParams: {
      ...params,
    },
  });
};
